#include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
#include <cmath>
#include <cstring>

int find_loc(int len,int a[],int target)
{
	int loc,key=0;
	for(int i=0;i<len;i++)
	{
		if(a[i]==target) 
		{
			loc=i;
			key=1;
			break;
		}
	}
	if(key==0) 
	{
		cout << "not find";
		exit(0);
	}
	return loc;
}

int main()
{
	int a[10]={0,1,2,6,7,8,9,45,65,1};
	int len=sizeof(a)/sizeof(a[0]);
	int target,loc;
	cin >> target;
	loc=find_loc(len,a,target);
	cout << loc;
}
